//
//  DateCollectionCell.m
//  YunDongGym
//
//  Created by lqq on 2018/8/3.
//  Copyright © 2018年 lqq. All rights reserved.
//

#import "DateCollectionCell.h"

@implementation DateCollectionCell

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _weekDayLabel = [[UILabel alloc] init];
        _weekDayLabel.textColor = HEXColor(@"#0E1C29");
        _weekDayLabel.font = RegularFont(13);
        _weekDayLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_weekDayLabel];
        [_weekDayLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.equalTo(@(29));
            make.centerX.equalTo(self);
            make.bottom.equalTo(self.mas_centerY);
        }];
        
        _dateLabel = [[UILabel alloc] init];
        [self addSubview:_dateLabel];
        _dateLabel.textColor = HEXColor(@"#0E1C29");
        _dateLabel.layer.cornerRadius = 14.5;
        _dateLabel.layer.masksToBounds = YES;
        _dateLabel.textAlignment = NSTextAlignmentCenter;
        _dateLabel.font = RegularFont(17);
        [_dateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.equalTo(@(29));
            make.centerX.equalTo(self);
            make.top.equalTo(self.mas_centerY);
        }];
    }
    return self;
}


@end
